﻿<%@page import="com.zkingsoft.pojo.ElementTypeFactory"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="${path }/resource/plugin/hui/lib/html5.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/hui/lib/respond.min.js"></script>
<script type="text/javascript" src="${path }/resource/plugin/hui/lib/PIE_IE678.js"></script>
<![endif]-->

<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/EXBase.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
</head>
<body>
<iframe src="" name="blankFrame" id="blankFrame"
		style="height: 100px; width: 100px; display: none;"> </iframe>
<div class="pd-20">
	<form class="form form-horizontal" method="post" action="admin/matchs/addOrModifyMatchs1" id="dataform" onsubmit="javascripr:return false;" >
		<input type="hidden" name="companyId" value=${user.companyId} >
		<c:if test="${obj ne null }">
			<input type="hidden" name="id" value="${obj.id }" >
		</c:if>
		
		<div class="row cl">
				<label class="form-label col-2">分组</label>
				<div class="formControls col-3">
					<select class="select select-box" size="1" name="sortId" dataType="*" nullmsg="分组不能为空">
						<c:forEach items="${sort }" var="item">
						<option
							<c:if test="${obj ne null && obj.sortId eq item.id }"> selected="selected" </c:if>
							value='${item.id }'>${item.name }</option>
						</c:forEach>
					</select>
				</div>
				<div class="col-2">
					<span class="Validform_checktip"></span>
				</div>
		</div>
		
		<div class="row cl">
				<label class="form-label col-2">主队</label>
				<div class="formControls col-3">
					<select class="select select-box" size="1" name="homeId" dataType="*" nullmsg="分组不能为空">
						<c:forEach items="${team }" var="item">
						<option
							<c:if test="${obj ne null && obj.homeId eq item.id }"> selected="selected" </c:if>
							value='${item.id }'>${item.name }</option>
						</c:forEach>
					</select>
				</div>
				<div class="col-2">
					<span class="Validform_checktip"></span>
				</div>
		</div>
		
		<div class="row cl">
				<label class="form-label col-2">客队</label>
				<div class="formControls col-3">
					<select class="select select-box" size="1" name="visitingId" dataType="*" nullmsg="分组不能为空">
						<c:forEach items="${team }" var="item">
						<option
							<c:if test="${obj ne null && obj.visitingId eq item.id }"> selected="selected" </c:if>
							value='${item.id }'>${item.name }</option>
						</c:forEach>
					</select>
				</div>
				<div class="col-2">
					<span class="Validform_checktip"></span>
				</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2">主队分数</label>
			<div class="formControls col-3">
				<input type="text" dataType="n" class="input-text" name="homeScore" value="${obj.homeScore }"  nullmsg="分数不能为空">
			</div>
			<div class="col-2">
				<span class="Validform_checktip"></span>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2">客队分数</label>
			<div class="formControls col-3">
				<input type="text" dataType="n" class="input-text" name="visitingScore" value="${obj.visitingScore }"  nullmsg="分数不能为空">
			</div>
			<div class="col-2">
				<span class="Validform_checktip"></span>
			</div>
		</div>
		
		<div class="row cl">
				<label class="form-label col-2">结果</label>
				<div class="formControls col-3">
					<select class="select select-box" size="1" name="result" dataType="*" nullmsg="结果不能为空">
						<option value="主队获胜">主队获胜</option>
						<option value="客队获胜">客队获胜</option>
						<option value="打平">打平</option>
					</select>
				</div>
				<div class="col-2">
					<span class="Validform_checktip"></span>
				</div>
		</div>
		
		<div class="row cl">
				<label class="form-label col-2">裁判</label>
				<div class="formControls col-3">
					<select class="select select-box" size="1" name="refereeId" dataType="*" nullmsg="分组不能为空">
						<c:forEach items="${referee }" var="item">
						<option
							<c:if test="${obj ne null && obj.refereeId eq item.id }"> selected="selected" </c:if>
							value='${item.id }'>${item.name }</option>
						</c:forEach>
					</select>
				</div>
				<div class="col-2">
					<span class="Validform_checktip"></span>
				</div>
		</div>
		
		<div class="row cl ">
			<div class="col-10 col-offset-2">
				<a href="javascript:void(0)" onclick="EXForm.submit()" class="btn btn-success radius" id="save-btn" >保存</a>
			</div>
		</div>
	</form>
	
	
		
		
	
	
</div>
<script type="text/javascript">
$(function() {
	EXForm.initForm();
});

</script>
</body>
</html>